import request from "../util/request.ts";
import {User} from "./type/model.ts";


// export const loginApi = async (username:string, password:string) => await request.post("/login",{username,password})

export const registerApi = async (user:User) => await request.post("/register", user)